﻿@{
    ViewBag.Title = "";
    Layout = "~/Views/Shared/_DialogLayout.cshtml";
}
@using TjZheng.Power.DataEntity;
@inherits CMSWebViewPage<IEnumerable<IconInfo>>
<div>
    @if (Model.IsNoNull())
    {
        foreach (var objIconInfo in Model)
        { 
        <a title="@objIconInfo.Name" onclick="SelectIcon('@objIconInfo.Icon');" class="easyui-linkbutton easyui-tooltip" data-options="iconCls:'@objIconInfo.Icon',plain:true"></a>
        }
    }
</div>
@section Bottom{
    <script type="text/javascript">
        function SelectIcon(val) {
            SetTargetItem("@GetString("dialog")", val, window.parent);
            CloseiFrameDialog("#@GetString("dialog")", window.parent);
        }
    </script>
}